package myhomework;

import java.util.Arrays;

public class Work52 {
    public static void main(String[] args) {
        String[] elem=new String[10];
        System.out.println(elem);//打印数组内存地址
        System.out.println(elem.length);//打印数组长度
        System.out.println(Arrays.toString(elem));//打印1；
        //打印二
        for (String s : elem) {
            System.out.println(s);
        }
        for (int i = 0; i < 10; i++) {
            System.out.println(elem[i]);
        }

    }
}
